package com.fengxing.ams.web.facade.mouble.quiz;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

public interface IUserQuizDAO extends PagingAndSortingRepository<UserQuizVO, String>, JpaSpecificationExecutor<UserQuizVO>  {

	@Query("select t from UserQuizVO t where t.user_id = :user_id")
	List<UserQuizVO> findAllByUserId(@Param("user_id") Long userId);

}
